(function($, owner) {
	var mask = mui.createMask();
		/**
		 * 用户登录
		 **/
		owner.check = function(loginInfo, callback) {
			callback = callback || $.noop;
			loginInfo = loginInfo || {};
			loginInfo.account = loginInfo.account || '';
			loginInfo.password = loginInfo.password || '';
			if (loginInfo.account.length < 5) {
				return callback('账号最短为 5 个字符');
			}
			if (loginInfo.password.length < 5) {
				return callback('密码最短为 6 个字符');
			}
			mask.show();//显示遮罩
			plus.nativeUI.showWaiting("登录中...");
			setTimeout(function() {
				plus.nativeUI.closeWaiting();
				mask.close();//关闭遮罩
				return callback();
			}, 800);
		}
}(mui, window.login = {}));